<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><s:property value="#session.access"/></title>
<meta name="viewport" content="width=device-width,inital-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/css/bootstrap.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath() %>/css/bootstrap-responsive.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/bootstrap.js"></script>
<script type="text/javascript">


</script>
</head>
<body>
	<div class="container">
		
		<s:action name="global_menu"  executeResult="true"></s:action>
		
		<div class="row">
			<div class="span12">
					
					<h5>
						子账户列表 &nbsp;&nbsp;&nbsp;&nbsp;<a class="toggle-link" href="<%=request.getContextPath()%>/subject_edit.html"><i class="icon-plus"></i> 新增子账户</a>
					</h5>
					
					
					
					<ul class="tasks zebra-list">
						<s:iterator value="subjectList" id="show">
						<li>
							<span class="title">
							<s:property value="#show.subNo"/> | 
							<s:property value="#show.subName"/>
							</span>
							<span class="meta" >
							<s:if test="#show.subState==1">
							<a href="javascript:void(0)" onclick="$.MsgBox.Confirm('提示', '禁用后该子账户将无法登陆,其名下的网站也将无法交易,确认吗?', function(){ajax('<%=request.getContextPath()%>/subject_savestate.html','subNo=<s:property value="#show.subNo"/>&subState=0')});">禁用帐号</a> |
							</s:if>
							<s:else>
							<a href="javascript:void(0)" onclick="ajax('<%=request.getContextPath()%>/subject_savestate.html','subNo=<s:property value="#show.subNo"/>&subState=1')">启用帐号</a> |
							</s:else>
							<a href="<%=request.getContextPath()%>/subject_edit.html?subNo=<s:property value="#show.subNo"/>">修改信息</a> | 
							<a href="javascript:void(0)" onclick="$.MsgBox.Alert('请拷贝以下字符串', '<textarea style=width:95%;><s:property value="#show.subKey"/></textarea>');">查看密钥</a> 
							</span>
							<span class="meta">
							创建时间 : <s:text name="global.format.date"><s:param value="#show.subDate"/></s:text> | 
							帐号状态 : <s:if test="#show.subState==1">正常</s:if><s:else>关闭</s:else>
							</span>
						</li>
						</s:iterator>
					</ul>
					
					<div class="hero-unit" style="padding: 15px;font-size: 12px;line-height: 20px;margin-top: 20px;">
						<p>
							1 . 每个商户号都有一个缺省子账户,编号为4位商户号+00组成,缺省子账户的权限为管理员,所有的交易默认产生在该子账户名下.
						</p>
						<p>
							2 . 如果希望将不同网站的交易分配到不同的子账户管理,请先创建新的子账户.
						</p>
						<p>
							3 . 在网站的接口安装包内,填入子账户的ID和密钥,则该网站的交易都会归属为该子账户的名下.
						</p>
						<p>
							4 . 不同的子账户登陆后只能管理属于自己的交易数据.
						</p>
						<p>
							5 . 发生过交易的子账户不能删除,如果想清理没产生过交易的子账户请联系运营人员.
						</p>
					</div>
					
				</div>
		</div>
		
		
		<s:action name="global_foot"  executeResult="true"></s:action>
	</div>
</body>
</html>